package com.mycat.dao.dto.auth;

import java.util.ArrayList;
import java.util.List;

/**
 * 角色授权树DTO
 * @author roger.
 * @email luojie@yzworld.cn
 * @date 2016/10/20
 */
public class RoleAuthTreeDTO {
    // 节点ID
    private Integer id;
    // 节点名
    private String text;
    // 父节点ID
//    private Integer parent;
    // 子节点集合
    private List<RoleAuthTreeDTO> children = new ArrayList<>();

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

//    public Integer getParent() {
//        return parent;
//    }

//    public void setParent(Integer parent) {
//        this.parent = parent;
//    }

    public List<RoleAuthTreeDTO> getChildren() {
        return children;
    }

    public void setChildren(List<RoleAuthTreeDTO> children) {
        this.children = children;
    }
}
